<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<%@ include file="/WEB-INF/include/common/common-header.jspf"%>
		<title>${siteName} - 用户基本资料</title>
		<%@ include file="/WEB-INF/include/admin/common-admin-header.jspf"%>
	</head>
	<body class="layui-layout-body">
		<div class="layui-fluid">
			<div class="layui-row layui-col-space15">
				<div class="layui-col-md12">
					<div class="layui-card">
						<div class="layui-card-header">设置我的资料</div>
						<div class="layui-card-body" pad15="">
							<form class="layui-form" action="${ctx}/admin/sys/user/update.html">
								<input type="hidden" name="id" value="${userVo.id}">
								<div class="layui-form-item">
									<label class="layui-form-label">昵称</label>
									<div class="layui-input-inline">
										<input type="text" name="username" lay-verify="required" value="${userVo.username}" autocomplete="off" placeholder="请输入昵称" class="layui-input">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">性别</label>
									<div class="layui-input-block">
										<input type="radio" name="gender" lay-verify="required" value="M" title="男" <c:if test="${userVo.gender == 'M'}">checked</c:if>> 
										<input type="radio" name="gender" lay-verify="required" value="W" title="女" <c:if test="${userVo.gender == 'W'}">checked</c:if>>
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">邮箱</label>
									<div class="layui-input-inline">
										<input type="text" value="${userVo.email}" autocomplete="off" class="layui-input" disabled="disabled">
									</div>
									<c:if test="${userVo.userStatus == 'W'}">
										<div class="layui-form-mid layui-word-aux">当前邮箱尚未激活，<a href="javascript:;" style="color:#009688">点击发送激活邮件</a></div>
									</c:if>
								</div>
								<div class="layui-form-item layui-form-text">
									<label class="layui-form-label">个性签名</label>
									<div class="layui-input-block">
										<textarea name="signature" placeholder="请输入个性签名" class="layui-textarea">${userVo.signature}</textarea>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-input-block">
										<button class="layui-btn" lay-submit="" lay-filter="setmyinfo">确认修改</button>
									</div>
								</div>
							</form>
	
						</div>
					</div>
				</div>
			</div>
		</div>
		<%@ include file="/WEB-INF/include/common/common-footer.jspf"%>
		<script>
			layui.use('form', function() {
				var form = layui.form;
			});
		</script>
	</body>
</html>